
#if !CF && !SILVERLIGHT

using Qdb.Config;
using Qdb.CS.Config;
using Qdb.CS.Foundation;
using Qdb.CS.Internal.Config;
using Qdb.Internal;

namespace Qdb.CS.Monitoring
{
    public class NetworkingMonitoringSupport:IConfigurationItem
    {
        public void Prepare(IConfiguration configuration)
        {
            INetworkingConfiguration networkConfig = QdbClientServerLegacyConfigurationBridge.AsNetworkingConfiguration(configuration);
            ISocket4Factory currentSocketFactory = networkConfig.SocketFactory;
            networkConfig.SocketFactory = new MonitoredSocket4Factory(currentSocketFactory);
        }

        public void Apply(IInternalObjectContainer container)
        {

        }
    }
}
#endif